package com.brillilab.domain.enums.lab;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum  LabJoinAuditStateEnum {
    WAIT(0,"待审核"),PASS(1,"通过"),NOT_PASS(2,"未通过");
    private Integer value;
    public String name;
    public static String getKey(Integer value) {
        for (LabJoinAuditStateEnum p : LabJoinAuditStateEnum.values()) {
            if (p.getValue().equals(value)) {
                return p.name;
            }
        }
        return null;
    }
}
